<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			
			//判断用户是否登录  未登录去登录页面
			let token = uni.getStorageSync('token')
			
			if(!token){
				uni.navigateTo({
					url:'/pages/user/login/login'
				})
			}
			
			
			
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
@import 'graceUI/graceUI.css';
@import "@/uni_modules/uview-plus/index.scss";


	
</style>
